//
//  BaseViewController.h
//  Learn
//
//  Created by icomexe on 2018/10/24.
//  Copyright © 2018年 cjg. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BaseNavBar.h"
#import "MBProgressHUD.h"

typedef enum : NSUInteger {
    BookTypeHearsay,//听说
    BookTypeHearing,//听力
    BookTypeFollowUpReading,//跟读
    BookTypeWrittenExam,//笔试
    BookTypePhonetic,//音标
    BookTypeModelsp,//典范
    BookTypeNewconcept,//新概念
    BookTypeBlackplum,//黑布林
    BookTypeInterest,//趣味
    
} BookType;

@interface BaseViewController : UIViewController
@property (nonatomic,assign) CGFloat navigationHeight;
@property (nonatomic,assign) CGFloat bottomSafeHeight;

@property(nonatomic,strong,nullable) MBProgressHUD   *objLoadingView;    //加载中
@property(nonatomic,strong,nullable) MBProgressHUD   *objToast;          //吐司

/* nav */
@property (nonatomic, strong) BaseNavBar    * navigationBar;

/// alert提示操作【单个action】
- (void)alertViewTitle:(NSString*)title message:(NSString*)msg title:(NSString*)buttonTitle block:(KMBlock)block ;

/// alert提示操作【左右双action】
- (void)alertViewTitle:(NSString*)title message:(NSString*)msg left:(NSString*)left leftBlock:(KMBlock)leftBlock right:(NSString*)right  rightBlock:(KMBlock)rightBlock ;

//显示加载中...
-(void)showLoadingViewWithText:(NSString *__nullable)text;
//移除加载中...
-(void)removeLoadingView;


- (void)initCusNav;

- (void)endEdit;
@end
